Time-Based Constraints in the Object Constraint Language

نویسندگان

  • Ali Hamie
  • Richard Mitchell
  • John Howse
چکیده

The Object Constraint Language (OCL) is a specification language which could be used for describing constraints on object-oriented models and other modelling artifacts. OCL is a part of the Unified Modelling Language (UML) which is the de facto standard for objectoriented analysis and design. OCL is designed to be used by software engineers and modellers and requires only modest mathematical training. This is achieved by keeping it simple and by employing a textual syntax rather than mathematical symbols. The kind of constraints which can be described using OCL include invariants on classes, preconditions and postconditions of operations. OCL uses @pre to refer to the value of a property immediately before the execution of an operation. However, OCL does not support the description of time-based constraints which say how values can change between earlier and later states. This paper describes an approach for incorporating time-based constraints within OCL in such a way so as not to compromise its simplicity. This approach is essentially based on using @pre in invariants as well as in postconditions of operations. To distinguish between invariants and time-based constraints we introduce the stereotype <>. We also introduce an operator eventually for expressing liveness constraints, and an operator initially for describing initial constraints. We illustrate the approach by describing constraints such as constant attributes of an object, constant associations, and values increasing or decreasing over time.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Comparing Mixed-Integer and Constraint Programming for the No-Wait Flow Shop Problem with Due Date Constraints

The impetus for this research was examining a flow shop problem in which tasks were expected to be successively carried out with no time interval (i.e., no wait time) between them. For this reason, they should be completed by specific dates or deadlines. In this regard, the efficiency of the models was evaluated based on makespan. To solve the NP-Hard problem, we developed two mathematical mode...

متن کامل

Towards Temporal constraint Support for OCL

The Object Constraint Language (OCL) is widely used to express precise and unambiguous constraints on models and object oriented programs. However, the notion of temporal constraints, controlling the system behavior over time, has not been natively supported. Such temporal constraints are necessary to model reactive and real-time systems. Although there are works addressing temporal extensions ...

متن کامل

Role-Based Authorization Constraints Specification Using Object Constraint Language

Augmenting the access control model with expressions ensures that no access right is leaked to an authorized user. Constraints are an important aspect of role-based access control (RBAC). And the importance of constraints in RBAC has been recognized for a long time but they have not received much attention. Although researchers have identified useful constraints using formal specification langu...

متن کامل

Formal Description of OCL Specification Patterns for Behavioral Specification of Software Components

The Object Constraint Language (OCL) is often used for behavioral specification of software components. One current problem in specifying behavioral aspects comes from the fact that editing OCL constraints manually is time consuming and error-prone. To simplify constraint definition we propose to use specification patterns for which OCL constraints can be generated automatically. In this paper ...

متن کامل

The C Constraint Object-Oriented Database System

Constraints provide a exible and uniform way to conceptually represent diverse data capturing spatio-temporal behavior, complex modeling requirements, partial and incomplete information etc, and have been used in a wide variety of application domains. Constraint databases have recently emerged to deeply integrate data captured by constraints in databases. This paper reports on the development o...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1999